package com.alu4r.atcrowdfunding.manager.dao;

import com.alu4r.atcrowdfunding.VO.Data;
import com.alu4r.atcrowdfunding.bean.Cert;
import com.alu4r.atcrowdfunding.bean.MemberCert;
import org.springframework.stereotype.Repository;

import java.util.List;
import java.util.Map;

@Repository
public interface CertMapper {

    Cert queryCert(Map<String, Object> paramMap);

    List<Cert> pageQuery(Map<String, Object> paramMap);

    int queryCount(Map<String, Object> paramMap);

    void insertCert(Cert cert);

    Cert queryById(Integer id);

    int updateCert(Cert cert);

    int deleteCert(Integer id);

    int deleteCerts(Data ds);

    List<Cert> queryCertByAccttype(String accttype);

    List<Cert> queryAllCert();

    List<Map<String, Object>> queryAllAccttypeCert();

    int insertAccttypeCert(Map<String, Object> map);

    int deleteAccttypeCert(Map<String, Object> map);

    void insertMemberCert(MemberCert memberCert);
}